import { get, post } from './http.js'
const HttpManager={
	// 是否登录成功
	GetLabels: (page,size) => get(`/labels/homepage/${page}/${size}`),
	GetEnterprises:(page,size)=>get(`/enterprises/homepage/${page}/${size}`),
	GetEnterprise:()=>get(`/enterprises`),
	PostsFilter:(page,size,parmas)=>post(`/posts/filter/${page}/${size}`,parmas),
	Myposts:(parmas)=>post(`/posts`,parmas),
	GetcommentsList:(postsId,pageNum,pageSize)=>get(`/posts/{postsId}/comments/{pageNum}/{pageSize}`),
	Posts:(parmas)=>get('/posts/'+parmas),
	Replycomments:(postsId,parmas)=>post("/comments/"+postsId,parmas),
    Praises:(parmas)=>post("/praises",parmas),
	catalogs:(pageNum,pageSize)=>get("/collection-catalogs/"+pageNum+"/"+pageSize),//获取该用户的收藏目录
	collectionCatalog:(parmas)=>post("/collection-catalogs",parmas),//创建收藏目录
    collections:(parmas)=>post("/collections",parmas),//收藏帖子到某个目录下
}
export {HttpManager};